package o;

import java.lang.reflect.InvocationTargetException;

public class dop implements dog {
    private static final Object ˏ = new Object();
    private static dop ॱ;

    public static dop ˊ() {
        dop o_dop;
        synchronized (ˏ) {
            if (ॱ == null) {
                ॱ = new dop();
            }
            o_dop = ॱ;
        }
        return o_dop;
    }

    public static Object ˋ() {
        Object obj = null;
        try {
            Class cls = Class.forName("android.telephony.MSimTelephonyManager");
            obj = cls.getDeclaredMethod("getDefault", new Class[0]).invoke(cls, new Object[0]);
        } catch (NoSuchMethodException e) {
            Logger.e("MutiCardHwImpl", " getDefaultMSimTelephonyManager wrong " + e.toString());
        } catch (IllegalAccessException e2) {
            Logger.e("MutiCardHwImpl", " getDefaultMSimTelephonyManager wrong " + e2.toString());
        } catch (IllegalArgumentException e3) {
            Logger.e("MutiCardHwImpl", " getDefaultMSimTelephonyManager wrong " + e3.toString());
        } catch (InvocationTargetException e4) {
            Logger.e("MutiCardHwImpl", " getDefaultMSimTelephonyManager wrong " + e4.toString());
        } catch (ClassNotFoundException e5) {
            Logger.e("MutiCardHwImpl", " getDefaultMSimTelephonyManager wrong " + e5.toString());
        }
        return obj;
    }

    public int ॱ() {
        try {
            Object ˋ = ˋ();
            if (ˋ != null) {
                return ((Integer) ˋ.getClass().getMethod("getPreferredDataSubscription", new Class[0]).invoke(ˋ, new Object[0])).intValue();
            }
            return 0;
        } catch (NoSuchMethodException e) {
            Logger.e("MutiCardHwImpl", " getPreferredDataSubscription wrong " + e.toString());
            return -1;
        } catch (IllegalAccessException e2) {
            Logger.e("MutiCardHwImpl", " getPreferredDataSubscription wrong " + e2.toString());
            return -1;
        } catch (InvocationTargetException e3) {
            Logger.e("MutiCardHwImpl", " getPreferredDataSubscription wrong " + e3.toString());
            return -1;
        }
    }
}
